// 从sessionStorage 取logo名称
export function getLogo(str) {
  let logo_key = sessionStorage.getItem('logo_key')
  if (logo_key === null) {
    const random = Math.floor(Math.random() * (13 - 1)) + 1
    logo_key = 'bee-' + random.toString() + '.png'
    sessionStorage.setItem('logo_key', logo_key)
  }
  return logo_key
}

//  取logo名称,并设置sessionStorage
export function getAndSetLogo(str) {
  const random = Math.floor(Math.random() * (13 - 1)) + 1
  const logo_key = 'bee-' + random.toString() + '.png'
  sessionStorage.setItem('logo_key', logo_key)
  return logo_key
}
